-- GENERATED SPELL FOR [Severed Dreamer] --


function spell0_3802(pUnit, Event) --@Summon Illusionary Nightmare,Self--
pUnit:FullCastSpellOnTarget(6905,pUnit)
pUnit:RegisterEvent('Sorts_3802', 2000, 1)
end

function Sorts_3802(pUnit, Event)
local choix_sorts_3802 = math.random(0, 0)
if choix_sorts_3802 == 0 then
pUnit:RegisterEvent('spell0_3802', 1, 1)
end
end

function mob3802_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_3802', math.random(1500, 3000), 1)
end

function mob3802_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3802_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob3802_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(3802, 1, 'mob3802_Action')
RegisterUnitEvent(3802, 2, 'mob3802_Leave')
RegisterUnitEvent(3802, 3, 'mob3802_Kill')
RegisterUnitEvent(3802, 4, 'mob3802_Die')
